<?php


namespace app\api\validate;


use think\Validate;

class Discount extends Validate
{
    protected $rule = [
        "start_time" => "require",
        "end_time" => "require",
        "amount" => "require",
        'cill_amount'=>'require'
    ];
    protected $message  =   [
        'start_time.require'  => '请选择开始时间',
        'end_time.require' => '请选择结束时间',
        'amount.require'  => '请输入优惠金额',
        'cill_amount.require' => '请输入门槛金额',
    ];
    protected $scene = [
        "save"   => ["start_time",'end_time','amount','cill_amount'],
    ];
}